﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Announcement/Announcement.master" AutoEventWireup="true" CodeBehind="AnnouncementForm.aspx.cs" Inherits="HRdex_Final.Announcement.WebForm2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div align="center">
    
    <table>
       <tr>
       <td colspan="2" style="text-align: left">
                        <asp:ImageButton ID="btnEdit" runat="server" Height="49px" 
                            onclick="btnEdit_Click"  />
                        <asp:ImageButton ID="btnNewItem0" runat="server" Height="49px" 
                            PostBackUrl="~/Functions/Announcement/AddEditView.aspx" 
               Width="52px" />
       
       </td>
       </tr>

        <tr>
            <td>    
                           <table>
                           <tr>
                                <td>
                                Announcement No.
                                </td>
                                <td>
                                    <asp:TextBox ID="txtAnnouncementID" runat="server" 
                                        Width="300px"></asp:TextBox>
                                </td>
                           </tr>
                           <tr>
            <td id="Title4" style="width: 85px; text-align: left;">
                Subject</td>
            <td id="txtTitle4">
                <asp:TextBox ID="txtSubject" runat="server" Width="300px" 
                   ></asp:TextBox>
            </td>
            </tr>
            <tr>
            <td id="AnnouncementBody" style="width: 85px; text-align: left;">
                
                    Description
            </td>
            <td id="txtBody">
               
                <asp:TextBox ID="txtDescription" runat="server" Height="87px" 
                    TextMode="MultiLine" Width="299px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td id="category" style="width: 85px">
                Caregories
            </td>
            <td id="CBcategory">
                <asp:DropDownList ID="ddlCategories" runat="server" 
                    DataSourceID="catAnnouncement" DataTextField="CatName" 
                    DataValueField="CatAnnID" Height="16px" Width="308px">
                </asp:DropDownList>
                <asp:SqlDataSource ID="catAnnouncement" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                    SelectCommand="SELECT [CatAnnID], [CatName] FROM [catAnnouncement]">
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td style="width: 85px; height: 26px;">
                Attachment           
            </td>
            <td style="height: 26px">    
                <asp:FileUpload ID="fuAttachment" runat="server" Width="219px" Height="21px" />
               
                <asp:Button ID="btnDownload" runat="server" 
                    Text="Download" />

            </td>
            </tr>
                               <tr>
                                   <td style="width: 85px; height: 26px;">
                                       &nbsp;</td>
                                   <td style="height: 26px">
                                       <asp:Label ID="lblPubDate" runat="server" style="text-align: right"></asp:Label>
                                   </td>
                               </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="txtSubmit" runat="server" Text="Save" onclick="txtSubmit_Click" 
                    Width="63px" style="height: 26px" />
                <asp:Button ID="txtCancel" runat="server" Text="Cancel" 
                    PostBackUrl="~/Functions/Announcement/Main.aspx" />
            </td>
        </tr>                           
            </td>
       </tr>
 
    </table>
</div>


</asp:Content>
